﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace CusCheckedListBox
{
    public class CoolItem:IDisposable
    {
        public Image CoolImage { get; set; }
        public string CoolText { get; set; }

        public CoolItem(string text, Image image):this(text)
        {
            this.CoolImage = image;
        }
        public CoolItem(string text)
        {
            this.CoolText = text;
        }

        #region IDisposable 成员

        public void Dispose()
        {
            CoolImage = null;
        }

        #endregion

        public override string ToString()
        {
            return CoolText;
        }
    }
}
